package com.bookshop.dao;

import com.bookshop.model.OrderItemModel;
import com.bookshop.model.OrdersModel;
import com.bookshop.vo.CartVo;
import com.bookshop.vo.OrderVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ICartDao {
    public List<CartVo> findCartById(int userId);
    public int addOrders(OrdersModel model);
    public int addOrderItem(OrderItemModel model);

    void deleteOrder(String orderId);

    void changeQuantity(Map param);

    List<OrderVo> getCartList();
}
